<?php

require_once("./include/include.php");


$sql_name = $_SESSION["username"];
$sql = "SELECT * FROM user WHERE username = '$sql_name'";

$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
$useArr = $row;

?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>用户中心</title>
  <link rel="stylesheet" href="css/user_center.css">
</head>
<body>
<div class="container">
    <include file="./Home/Tpl/public/header.html" />
  <div class="banner">
	<img src="images/cases_banner.gif" alt="">
  </div>
  <div class="main">
	<div class="main_title">
	  <a href="#">首页</a>
	  <span>></span>
	  <a href="#">用户中心</a>
	  <span>></span>
	  <a href="#">基本信息</a>
	</div>
	<div class="main_top">
	  <div class="con_left fl">
		<p class="username">
		  <span><?php echo $useArr['username']; ?></span>
		</p>

		<p>
		  <a href="">基本信息<span>></span></a>
		</p>

		<p>
		  <a href="user_setting.php" target="_blank">账号设置<span>></span></a>
		</p>

		<p>
		  <a href="user_msg.php" target="_blank">客户留言<span>></span></a>
		</p>
	  </div>
	  <div class="con_right fr">
		<div class="user_info">
		  <span>基本信息</span>
		  <span>账号设置</span>
		</div>
		<div class="con_right_info">
		  <p>账号： <?php echo $useArr['username']; ?></p>

		  <p>邮箱： <?php echo $useArr['Email']; ?></p>

		  <p>ＱＱ： <?php echo $useArr['QQ']; ?></p>

		  <p>详细地址： <?php echo $useArr['address']; ?></p>
		</div>
	  </div>
	</div>
  </div>
    <include file="./Home/Tpl/public/footer.html" />
</div>
</body>
</html>